class ChangeProductsPriceColumn < ActiveRecord::Migration
  def up
    remove_column :products, :price
    add_column :products, :price, 'decimal(8,3)'
    remove_column :products, :coupon_price
    add_column :products, :coupon_price, 'decimal(8,3)'
  end

  def down
    remove_column :products, :price
    add_column :products, :price, 'decimal'
    remove_column :products, :coupon_price
    add_column :products, :coupon_price, 'decimal'
  end
end
